package com.yl.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lfs
 * @since 2021-01-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TActOrder extends Model<TActOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ORDER_ID", type = IdType.AUTO)
    private Long orderId;

    /**
     * 商户订单号
     */
    @TableField("M_ORDER_ID")
    private String mOrderId;

    @TableField("HXID")
    private Long hxid;

    @TableField("ACT_ID")
    private Long actId;

    @TableField("CLIENT_ID")
    private Long clientId;

    @TableField("PRICE")
    private BigDecimal price;

    @TableField("NUMBER")
    private Integer number;

    @TableField("UNIT")
    private String unit;

    @TableField("SPEC")
    private String spec;

    @TableField("AMOUNT")
    private BigDecimal amount;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 0-未支付，1-云闪付，2-微信，3-余额
     */
    @TableField("PAY_TYPE")
    private Integer payType;

    @TableField("HX_TIME")
    private LocalDateTime hxTime;

    @TableField("LONGITUDE")
    private String longitude;

    @TableField("LATITUDE")
    private String latitude;

    @TableField("SCHOOL")
    private String school;

    @TableField("GRADE")
    private String grade;

    @TableField("CLASS_NAME")
    private String className;

    @TableField("CUSTOMER_NAME")
    private String customerName;

    @TableField("MOBILE")
    private String mobile;

    @TableField("POS_NO")
    private String posNo;

    @TableField("TERM_NO")
    private String termNo;

    @TableField("UNION_ORDER_NO")
    private String unionOrderNo;

    @TableField("OR_STATUS")
    private String orStatus;

    @TableField("BANK_CARD_NO")
    private String bankCardNo;

    @TableField("BILL_DESC")
    private String billDesc;

    @TableField("PAY_TIME")
    private LocalDateTime payTime;

    @TableField("OPEN_ID")
    private String openId;

    @TableField("UNION_ID")
    private String unionId;

    /**
     * 餐饮企业id
     */
    @TableField("ENTERPRISE_ID")
    private Long enterpriseId;

    @TableField("REGION")
    private String region;

    @TableField("ADDRESS")
    private String address;

    @TableField("POST_CODE")
    private String postCode;

    @TableField("TAKE_TICKET_DATE")
    private LocalDate takeTicketDate;

    @TableField("COUPON_AMOUNT")
    private BigDecimal couponAmount;


    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }

}
